package cn.jxau.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.plugins.Page;

import cn.jxau.bean.po.Article;
import cn.jxau.bean.po.User;
import cn.jxau.bean.po.UserCollections;
import cn.jxau.common.util.CommonMapper;

public interface UserCollectionsMapper extends CommonMapper<UserCollections>{
	List<Article> getCollectionByUserID(Page<Article> page, Long id);

	int deleteByDoubleId(@Param("articleID")Long articleID, @Param("userID")Long userID);
	
	List<Article> getUserArticleByTypeID(Page<Article> page, @Param("usertypeID")Long usertypeID,@Param("userID")Long userID);

	Integer getCollectionCount(Long authorID);

	List<UserCollections> selectIsExist(@Param("articleID")Long articleID, @Param("userID")Long userID);
}
